package test.gc;

//-Xms512m -Xmx512m -XX:+PrintGC
// -XX+PrintGCDateStamps -XX:+PrintFlagsFianl
public class GC_Demo {
    //引发minor GC
    public static void main(String[] args) throws InterruptedException {
        for (int i = 0; i < 1000 ; i++) {
            for (int j = 0; j < 180; j++) {
                byte[] a = new byte[1024 * 1024];
            }
            System.out.println("执行完毕");
            Thread.sleep(10000);
        }
    }
}
